package com.test.util;

import com.test.dao.QuestionDao;
import com.test.dao.impl.QuestionDaoImpl;


public class Factory {
	private static Factory instance = new Factory();
	private QuestionDao questionDao;
	

	private Factory(){}

	public static synchronized Factory getInstance(){
		return Factory.instance;
	}
	
	public QuestionDao getQuestionDao(){
		if(questionDao == null){
			questionDao = new QuestionDaoImpl();
		}
		return questionDao;
	}

}
